JBoss Community Archive (Read Only)

WildFly 8

Getting Server-specific Metrics in a Managed Domain

In a managed domain, with one or more server groups deployed, we may wish to view server-specific subsystem metrics for a given subsystem resource. In other words, for a given host and a server deployed on that host, we may wish to view metrics defined for a particular subsystem which reflect the run-time behaviour of that particular subsystem on that particular server instance. 

For example, we may have a server group of consisting of two servers using the full-ha profile, so forming a cluster, and a distributed application deployed on that cluster. The values for runtime metrics for distributed cache management on each server would reflect the processing activity at that particular server.

Standalone mode

In standalone mode, such resources could be accessed by using the CLI to connect to the standalone instance and executing the command:

/subsystem=infinispan/cache-container=web/distributed-cache=dist:read-resource(include-runtime=true)

The fact that we have used the CLI to connect to a specific server instance allows us to choose the server we wish to read the metrics from.

Domain mode

In domain mode, the same resources could be accessed by using the CLI to connect to the domain controller of the domain and executing the command:

/host=<host>/server=<server>/subsystem=infinispan/cache-container=web/distributed-cache=dist:read-resource(include-runtime=true)

where <host> is the name of the host on which the server resides and <server> is the name of the server of interest. 

Note that the command:

/profile=full-ha/subsystem=infinispan/cache-container=web/distributed-cache=dist:read-resource(include-runtime=true)

does not return run-time information concerning specific servers, but rather the configuration of the full-ha profile used in the domain. Any run-time metrics will be marked as undefined.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 13:46:53 UTC, last content change 2014-10-17 20:05:40 UTC.